package day0417;

public class Test4 {
    public static void main(String[] args) {
        int m=5;
        while(m<=100){
            if(m%5==0){
                System.out.println(m);
            }
            m++;
        }





        int i=5;
        while(i<=100){
            System.out.println(i);
            i= i + 5;
        }

        for(int j=5; j<=100; j++){//while(j<=100){
            if(j%5==0){
                System.out.println(j);
            }
        }

        for(int j=5; j<=100; j= j + 5){//while(j<=100){
            System.out.println(j);
        }




        char gender='男';
        if(gender=='男'){
            System.out.println("请进入男厕");
        }else if(gender=='女'){
            System.out.println("请进入女厕");
        }else{
            System.out.println("性别输入有误");
        }


        switch (gender){//如果没有break就结束不了了，就会将剩余代码全部执行(不会判断)
            case '男':  System.out.println("请进入男厕");break;
            case '女':  System.out.println("请进入女厕");break;
            default:  System.out.println("性别输入有误");break;
        }








    }
}
